PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig

#CC =  aarch64-linux-gnu-gcc
CFLAGS = -Wall -Wextra -O0 -g -I/usr/include/libdrm
#LDFLAGS = -L./lib -ldrm
LDFLAGS = -L/usr/lib/x86_64-linux-gnu/ -ldrm

CC = gcc

TARGET = drm_example
SRC = main.c

all: $(TARGET)

$(TARGET): $(SRC)
	$(CC) $(CFLAGS)  $< $(LDFLAGS) -o $@

clean:
	rm -f $(TARGET)

.PHONY: all clean